home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / benchmarks / itc / gcc / tm-isi68.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-08-30  |  2.4 KB  |  67 lines

  1. /* Definitions of target machine for GNU compiler.  ISI 68000/68020 version.
  2.    Intended only for use with GAS, and not ISI's assembler, which is buggy
  3.    Copyright (C) 1988 Free Software Foundation, Inc.
  4.  
  5. This file is part of GNU CC.
  6.  
  7. GNU CC is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY.  No author or distributor
  9. accepts responsibility to anyone for the consequences of using it
  10. or for whether it serves any particular purpose or works at all,
  11. unless he says so in writing.  Refer to the GNU CC General Public
  12. License for full details.
  13.  
  14. Everyone is granted permission to copy, modify and redistribute
  15. GNU CC, but only under the conditions described in the
  16. GNU CC General Public License.   A copy of this license is
  17. supposed to have been given to you along with GNU CC so you
  18. can know your rights and responsibilities.  It should be in a
  19. file named COPYING.  Among other things, the copyright notice
  20. and this notice must be preserved on all copies.  */
  21.  
  22. #include "tm-m68k.h"
  23.  
  24. /* See tm-m68k.h.  7 means 68020 with 68881. */
  25.  
  26. #define TARGET_DEFAULT 7
  27.  
  28. /* Define __HAVE_FPU__ in preprocessor, unless -msoft-float is specified.
  29.    This will control the use of inline 68881 insns in certain macros.  */
  30.  
  31. #define CPP_SPEC "%{!msoft-float:-D__HAVE_FPU__}"
  32.  
  33. /* If the 68881 is used, link must load libmc.a instead of libc.a */
  34.  
  35. #define LIB_SPEC "%{msoft-float:%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}}%{!msoft-float:%{!p:%{!pg:-lmc}}%{p:-lmc_p}%{pg:-lmc_p}}"
  36.  
  37. /* Names to predefine in the preprocessor for this target machine.  */
  38.  
  39. #define CPP_PREDEFINES "-Dunix -Dmc68000 -Dis68k"
  40.  
  41. /* This is BSD, so it wants DBX format.  */
  42.  
  43. #define DBX_DEBUGGING_INFO
  44.  
  45. /* Override parts of tm-m68000.h to fit the ISI 68k machine.  */
  46.  
  47. #undef FUNCTION_VALUE
  48. #undef LIBCALL_VALUE
  49. #undef FUNCTION_VALUE_REGNO_P
  50. #undef ASM_FILE_START
  51.  
  52. /* If TARGET_68881, return SF and DF values in f0 instead of d0.  */
  53.  
  54. #define FUNCTION_VALUE(VALTYPE,FUNC) LIBCALL_VALUE (TYPE_MODE (VALTYPE))
  55.  
  56. #define LIBCALL_VALUE(MODE) \
  57.  gen_rtx (REG, (MODE), ((TARGET_68881 && ((MODE) == SFmode || (MODE) == DFmode)) ? 16 : 0))
  58.  
  59. /* 1 if N is a possible register number for a function value.
  60.    D0 may be used, and F0 as well if -m68881 is specified.  */
  61.  
  62. #define FUNCTION_VALUE_REGNO_P(N) \
  63.  ((N) == 0 || (TARGET_68881 && (N) == 16))
  64.  
  65. /* Also output something to cause the correct _doprnt to be loaded.  */
  66. #define ASM_FILE_START(FILE) fprintf (FILE, "#NO_APP\n.globl fltused\n")
  67.